package org.mcflier.appuntamento.i18n;

public class Country {

	private String code, name;
	
	public Country(String code, String name){
		if(code == null || name == null)
			throw new NullPointerException("Country: All parameters must not be null");
		
		this.setCode(code);
		this.setName(name);
	}

	public String getCode() {
		return this.code;
	}

	protected void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return this.name;
	}

	protected void setName(String name) {
		this.name = name;
	}
	
	public String toString(){
		return this.getCode()+" "+this.getName();
	}
}